import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect:'/login',
  },
  // {
  //   path: '/index',
  //   name: 'index',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/index/index.vue'),
  //   children:[
  //     {
  //       path: '/user',
  //       name: 'user',
  //       component: () => import(/* webpackChunkName: "about" */ '../views/admin/user.vue'),
  //       meta:{
  //         title: '用户列表',
  //         keepAlive:true
  //       }
  //     },
  //   ]
  // },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/login.vue'),
    meta:{
      title:'登录',
    }
  },
  {
    path: '/home',
    name: 'home',
    component: () => import(/* webpackChunkName: "about" */ '../views/home.vue'),
    meta:{
      title:'首页',
      keepAlive:true,
    }
  },
  {
    path: '/companyList',
    name: 'companyList',
    component: () => import(/* webpackChunkName: "about" */ '../views/companyList.vue'),
    meta:{
      title:'企业列表',
      keepAlive:true,
    }
  },
  {
    path: '/parkList',
    name: 'parkList',
    component: () => import(/* webpackChunkName: "about" */ '../views/parkList.vue'),
    meta:{
      title:'园区列表',
      keepAlive:true,
    }
  },
  {
    path: '/companyDetail',
    name: 'companyDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/companyDetail.vue'),
    meta:{
      title:'企业详情',
    }
  },
  {
    path: '/parkDetail',
    name: 'parkDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/parkDetail.vue'),
    meta:{
      title:'园区详情',
      keepAlive:true,
    }
  },
  {
    path: '/parkDetail1',
    name: 'parkDetail1',
    component: () => import(/* webpackChunkName: "about" */ '../views/parkDetail1.vue'),
    meta:{
      title:'园中园详情',
      keepAlive:true,
    }
  },
  {
    path: '/shengdu',
    name: 'shengdu',
    component: () => import(/* webpackChunkName: "about" */ '../views/shengdu.vue'),
    meta:{
      title:'委托尽调',
    }
  },
  {
    path: '/proList',
    name: 'proList',
    component: () => import(/* webpackChunkName: "about" */ '../views/proList.vue'),
    meta:{
      title:'投资项目',
      keepAlive:true,
    }
  },
  {
    path: '/proDetail',
    name: 'proDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/proDetail.vue'),
    meta:{
      title:'项目详情',
    }
  },
  {
    path: '/zs_proList',
    name: 'zs_proList',
    component: () => import(/* webpackChunkName: "about" */ '../views/zs_proList.vue'),
    meta:{
      title:'招商项目',
      keepAlive:true,
    }
  },
  {
    path: '/zs_proDetail',
    name: 'zs_proDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/zs_proDetail.vue'),
    meta:{
      title:'项目详情',
    }
  },
  {
    path: '/zs_xs',
    name: 'zs_xs',
    component: () => import(/* webpackChunkName: "about" */ '../views/zs_xs.vue'),
    meta:{
      title:'招商线索',
      keepAlive:true,
    }
  },
  {
    path: '/zs_xsDetail',
    name: 'zs_xsDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/zs_xsDetail.vue'),
    meta:{
      title:'线索详情',
    }
  },
  {
    path: '/chain',
    name: 'chain',
    component: () => import(/* webpackChunkName: "about" */ '../views/chain.vue'),
    meta:{
      title:'产业链',
      keepAlive:true,
    }
  },
  {
    path: '/chainDetail',
    name: 'chainDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/chainDetail.vue'),
    meta:{
      title:'产业链详情',
      keepAlive:true,
    }
  },
  {
    path: '/pList',
    name: 'pList',
    component: () => import(/* webpackChunkName: "about" */ '../views/pList.vue'),
    meta:{
      title:'政策库',
      keepAlive:true,
    }
  },
  {
    path: '/pDetail',
    name: 'pDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/pDetail.vue'),
    meta:{
      title:'政策详情',
    }
  },
  {
    path: '/xxList',
    name: 'xxList',
    component: () => import(/* webpackChunkName: "about" */ '../views/xxList.vue'),
    meta:{
      title:'消息',
      keepAlive:true,
    }
  },
  {
    path: '/zs_news',
    name: 'zs_news',
    component: () => import(/* webpackChunkName: "about" */ '../views/zs_news.vue'),
    meta:{
      title:'招商资讯',
      keepAlive:true,
    }
  },
  {
    path: '/zjc',
    name: 'zjc',
    component: () => import(/* webpackChunkName: "about" */ '../views/zjc.vue'),
    meta:{
      title:'资金池',
      keepAlive:true,
    },
  },
  {
    path: '/rcc',
    name: 'rcc',
    component: () => import(/* webpackChunkName: "about" */ '../views/rcc.vue'),
    meta:{
      title:'人才池',
      keepAlive:true,
    }
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
